<template>
  <div class="dashboard-editor-container">
    <Annoucements />

    <el-row :gutter="8" class="row-container">
      <el-col :xs="{span: 24}" :sm="{span: 8}" :md="{span: 8}" :lg="{span: 8}" :xl="{span: 8}" style="margin-bottom:30px;">
        <div class="chart-wrapper">
          <pie-chart />
        </div>
      </el-col>
      <el-col :xs="{span: 24}" :sm="{span: 8}" :md="{span: 8}" :lg="{span: 8}" :xl="{span: 8}" style="margin-bottom:30px;">
        <todo-list />
      </el-col>
      <el-col :xs="{span: 24}" :sm="{span: 8}" :md="{span: 8}" :lg="{span: 8}" :xl="{span: 8}" style="margin-bottom:30px;">
        <Notifications />
      </el-col>
    </el-row>
  </div>
</template>

<script>
import TodoList from './components/TodoList'
import Annoucements from './components/Announcements'
import Notifications from './components/Notification'
import PieChart from './components/PieChart'

export default {
  name: 'DashboardAdmin',
  components: {
    TodoList,
    Notifications,
    Annoucements,
    PieChart
  }
}
</script>

<style lang="scss" scoped>
.dashboard-editor-container {
  height:1000px;
  padding: 32px;
  background-color: rgb(240, 242, 245);
  position: relative;

  .github-corner {
    position: absolute;
    top: 0px;
    border: 0;
    right: 0;
  }

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 32px;
  }
}

.row-container {
  margin-top: 2rem;
}

@media (max-width:1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}
</style>
